package com.example.bank.service;

import com.example.bank.entity.Transaction;

import java.time.LocalDate;
import java.util.List;

public interface TransactionService {
    
    Transaction createTransaction(Transaction transaction);
    
    Transaction getTransactionById(Long id);
    
    List<Transaction> getAllTransactionsByAccountNumber(Long accountNumber);
    
    List<Transaction> getTransactionsByAccountNumberAndType(Long accountNumber, String type);
    
    List<Transaction> getTransactionsByAccountNumberAndDate(Long accountNumber, LocalDate date);
    
    List<Transaction> getTransactionsByPhoneNumberAndType(String phoneNumber, String type, LocalDate date);
} 